<!-- /* Description for file.
 * 数据库操作
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/systemconfigs
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0630
 * @lastmodified  张海杰2011年0715
 */
 -->
<?php
echo $html->css ( 'tab' );
echo $html->css ( 'jquery-validate/css/screen' );
?>
<script type="text/javascript">
//Form验证
$(document).ready(function() {
	$(".deletebutton").click(function(){
		if(!confirm("确定删除?"))
		{
			return;
		}
		});
	// validate signup form on keyup and submit
	$("#SystemconfigImportForm").validate({
		rules: {
		myfile: {
				required: true,accept:"sql" 
			}
		},
		messages: {
			myfile: {
			required: "请选择,还原数据库 文档(*.sql)",accept:" 请输入拥有合法后缀名的字符串*.sql"
			}
		},
		//设置验证触发事件 
		focusInvalid: false, 
		onkeyup: false, 
		//设置错误信息提示DOM  
		errorPlacement: function(error, element) { 
		error.appendTo( element.parent()); 
		}
	});
	$("#SystemconfigExportForm").validate({
		rules: {
		path: {
				required: true,systemurl: true
			}
		},
		messages: {
			path: {
			required: "请输入正确系统路径"
			}
		},
		//设置验证触发事件 
		focusInvalid: false, 
		onkeyup: false, 
		//设置错误信息提示DOM  
		errorPlacement: function(error, element) { 
		error.appendTo( element.parent()); 
		}
	});
});
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Othersetting');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('database',true).__('operation',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<fieldset><legend><?php __('database restore');//数据库还原form?></legend>
<?php echo $form->create('Systemconfig',array('action'=>'import','type'=> 'post','enctype'=>'multipart/form-data'));?>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	 <tr>
		<td width="50"></td>
		<td width="100"><?php __('database restore');//数据库还原?>:</td>
		<td><?php echo $form->file('myfile',
			array('name'=>'myfile','id'=>'myfile','class' => 'TextBoxL txtOut','enctype'=>'multipart/form-data')); ?>
		</td>
		<td width="50">
			<?php echo $form->button('还原',array('type'=>'submit','class'=>'databasebutton'));?>
		</td>
	 </tr>
	</table>
<?php echo $form->end();?>
</fieldset>
</div>

<div class="tabflex">
<fieldset><legend><?php __('database bakeup');//数据库备份form?></legend>
<?php echo $form->create('Systemconfig',array('action'=>'export','type'=> 'post'));?>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	 <tr>
	 	<td></td>
		<td colspan="3"><font color="#747474">说明：请确保您所填的文件夹在服务器上存在，不然备份可能失败。备份的文件名默认为当天日期.sql</font></td>
	 </tr>
	 <tr>
	 	<td></td>
		<td  colspan="3">数据库服务器为：(local) </td>
	 </tr>
	 <tr>
	 	<td></td>
		<td  colspan="3">数据库名称为：ues </td>
	 </tr>
	 <tr>
		<td width="50"></td>
		<td width="100"><?php __('database bakeup path');//备份服务器路径?>:</td>
		<td>
		<?php echo $form->input('path',array('size'=>80,'value'=>'d:\sql','name'=>'path','label'=>false));?>
		</td>
		<td width="50"><?php echo $form->button('备份',array('type'=>'submit','class'=>'databasebutton'));?></td>
	 </tr>
	</table>
<?php echo $form->end();?>
</fieldset>
</div>

<div class="tabflex">
<fieldset><legend><?php __('delete resume');//删除多余简历form?></legend>
<?php echo $form->create('Systemconfig',array('action'=>'delmoreresumes','type'=> 'post'));?>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	 <tr>
	 	<td ></td>
		<td colspan="3"><font color="#747474">说明：删简历前，请务必备份数据库。</font></td>
	 </tr>
	 <tr>
	 	<td></td>
		<td colspan="3"><font color="#747474">删除简历时，如果您的简历量比较大，而且重复简历较多的话，可能速度会比较慢。</font></td>
	 </tr>
	 <tr>
	 	<td></td>
		<td colspan="3"><font color="#747474">删除规则：简历语言相同前提下，手机或者电子邮件相同的ID号小的简历
			被优先删除（保留有批注和推荐面试记录的简历）。</font></td>
	 </tr>
	 <tr>
		<td width="50"></td>
		<!--
		<td width="100"><?php __('delete redundancy resume');//删除多余简历?></td>
		-->
		<td width="50"><?php echo $form->button('删除多余简历',array('type'=>'submit','class'=>'deletebutton','style'=>'width:100px'));?></td>
	 </tr>
	</table>
<?php echo $form->end();?>
</fieldset>
</div>


